package cn.com.wangluotongxin.merchants;

import cn.com.wangluotongxin.db.tenant.TenantDataSource;
import cn.com.wangluotongxin.merchants.database.MerchantsDatabaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *  初始化租户信息
 */
@Component
public class InitTenantInfo extends TenantDataSource {

    @Autowired
    private MerchantsDatabaseService databaseService;

    @Override
    public void loadDataSource() {
        databaseService.loadDatabase();
    }
}
